import request from '@/utils/request'

// 查询服务器证书列表
export function listServercrt(query) {
  return request({
    url: '/lbconfig/servercrt/list',
    method: 'get',
    params: query
  })
}

// 查询服务器证书详细
export function getServercrt(id) {
  return request({
    url: '/lbconfig/servercrt/' + id,
    method: 'get'
  })
}

// 新增服务器证书
export function addServercrt(data) {
  return request({
    url: '/lbconfig/servercrt',
    method: 'post',
    data: data
  })
}

// 修改服务器证书
export function updateServercrt(data) {
  return request({
    url: '/lbconfig/servercrt',
    method: 'put',
    data: data
  })
}

// 删除服务器证书
export function delServercrt(id) {
  return request({
    url: '/lbconfig/servercrt/' + id,
    method: 'delete'
  })
}
